/* Includes ------------------------------------------------------------------*/

#include "FatfsApi.h"
#include "Globals.h"
#include "ff.h"
#include "Beep.h"

TCHAR FileName[14] 		 = "0:YCSW150.txt";
TCHAR FileNameTemp[14] = "0:150temp.txt";

void SetFileName(u16 fileCnt)
{
		
		FileName[6]	 	= fileCnt/100 		+ 0x30;
		FileName[7]	 	= fileCnt%100/10 	+ 0x30;
		FileName[8] 	= fileCnt%100%10 	+ 0x30;

}
void SetFileTempName(u16 fileCnt)
{
		
		FileNameTemp[2]	 	= fileCnt/100 		+ 0x30;
		FileNameTemp[3]	 	= fileCnt%100/10 	+ 0x30;
		FileNameTemp[4] 	= fileCnt%100%10 	+ 0x30;

}
void SDCard_Error(void)
{
		BEEP_On();
}
